package xtime

import org.hr.organisation.OrganisationService;
import org.hr.organisation.UserDetails;
import org.hr.xtime.user.Employee;

class SecurityFilters {

    def filters = {
		loginCheck(controller:'*', action:'*') {
			before = {
				if(!session?.user){	
					session.user = new OrganisationService().getUserDetails("12")
					session.employee = Employee.findByUserId("12")
				}
			}
		}
    }
}
